package com.sgb.kjwl.view.ui.adapter.business;

import android.content.Context;

import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.business.TripEntity;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

/**
 * 申请详情中出差详情的行程列表
 */
public class TripDetailAdapter extends BaseRecycleAdapter<TripEntity> {
    public TripDetailAdapter(Context context, List<TripEntity> data) {
        super(context, R.layout.item_trip_detail, data);
    }

    @Override
    public void convert(ItemViewHolder holder, final TripEntity entity) {
        holder.setBinding(BR.viewModel, entity);
    }

}
